package com.perye.dokit.utils;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.perye.dokit.utils.pageData.PageData;
import io.jsonwebtoken.lang.Classes;

import java.util.List;

public class ArrayAssembly {

    public static PageData pageList(List<PageData> list,Integer count){
        PageData pageData = new PageData();

        PageInfo<PageData> pageInfo = new PageInfo<PageData>(list);
        pageInfo.setList(list);
        pageData.put("totalElements",count);
        pageData.put("content",list);
        return pageData;
    }
}
